package text_2023_09_22;

import java.util.Scanner;

/**
 * @author Vv
 * @version 1.0
 * @project coding_learn
 * @description
 * @date 2023/9/22 08:22:12
 */
public class CountCharE {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.next();
        char[] str = s.toCharArray();
        int count = 0;
        for(int i = 0;i<str.length;i++){
            count += str[i] == 'e' ? 1 : 0;
        }
        System.out.println(count);
    }
}
